export default {
	namespaced: true,
	state() {
		return {
			symptom: JSON.parse(uni.getStorageSync('symptom') || '[]'),
			blood: JSON.parse(uni.getStorageSync('blood') || '[]'),
		}
	},
	mutations: {
		updateSymptom(state, symptom) {
			state.symptom.push(symptom)
			uni.setStorageSync('symptom', JSON.stringify(state.symptom))
		},
		updateBlood(state, blood) {
			state.blood.push(blood)
			uni.setStorageSync('blood', JSON.stringify(state.blood))
		}
	}
}
